package com.example.xunwuproject.repository;

import com.example.xunwuproject.entity.Role;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2019-03-10
 **/
public interface RoleRepository extends CrudRepository<Role, Long>{

    List<Role> findRolesByUserId(Long userId);
}
